delete dir nodejs

81

delete dir nodejs -

fs.rmdirSync(dir, { recursive: true });

how to delete a folder using node js -

fs.unlink('./node/myText.txt',function(){
    fs.rmdir('node');
});

Comments

Submit
0 Comments